<template>
    <div class="model-form">
        <el-page-header @back="goBack" content="详情">
        </el-page-header>
        <el-form class="viewForm" label-width="80px">
                    <el-col :span="24">
                        <el-form-item label="商品主图">
                            <div v-html="viewModel.logo"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="商品名称">
                            <div v-html="viewModel.name"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="商品状态">
                            <div v-html="viewModel.state"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="价格">
                            <div v-html="viewModel.price"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="标准售价">
                            <div v-html="viewModel.standardPrice"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="批发价">
                            <div v-html="viewModel.wholesalePrice"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="配送价">
                            <div v-html="viewModel.deliveryPrice"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="销价1">
                            <div v-html="viewModel.salePrice1"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="销价2">
                            <div v-html="viewModel.salePrice2"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="销价3">
                            <div v-html="viewModel.salePrice3"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="销价4">
                            <div v-html="viewModel.salePrice4"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="最低售价">
                            <div v-html="viewModel.minPrice"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="最高售价">
                            <div v-html="viewModel.maxPrice"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="单位">
                            <div v-html="viewModel.unitName"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="24">
                        <el-form-item label="商品简介">
                            <div v-html="viewModel.summary"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="24">
                        <el-form-item label="商品介绍">
                            <div v-html="viewModel.note"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="库存">
                            <div v-html="viewModel.stockNum"></div>
                        </el-form-item>
                    </el-col>
        </el-form>
    </div>
</template>

<script setup>
    import {useShow} from "@/utils/useShow";
    const { goBack,viewModel} = useShow("/product/view")
</script>

<style scoped>

</style>